Package com.netscape.cmscore.request
Class Request
java.lang.Object
com.netscape.cmscore.request.Request
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
ID of requested certificate authority (absence implies host authority)static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Name of request attribute that stores the User Supplied Certificate Request.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static org.slf4j.Logger
protected String
protected ExtDataHashtable
<Object> protected String
protected RequestId
protected RequestStatus
protected String
protected String
protected String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Symmetric Key algorithm OID passed into DRM archival servicestatic final String
Symmetric key algorithm params passed into DRM archival servicestatic final String
Name of request attribute that stores the End-User Supplied PKI Archive Option extension.static final String
Name of request attribute that stores the certificate template that will be signed and then become a certificate.static final String
Name of request attribute that stores the End-User Supplied Extensions.static final String
Name of request attribute that stores the issued certificate.static final String
Name of request attribute that stores the End-User Supplied Key.static final String
Session wrapped security data passed in to the DRM archival servicestatic final String
Transport Key wrapped session key passed into DRM archival service.static final String
Name of request attribute that stores the End-User Supplied Signing Algorithm.static final String
Name of request attribute that stores the End-User Supplied Subject Name.static final String
Name of request attribute that stores the transport certificate.static final String
static final String
Name of request attribute that stores the End-User Supplied Validity.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final Integer
static final Integer
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Other attributes stored in the attribute setstatic final String
Arbitrary user-supplied data that will be saved in request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyContents
(Request req) Copies meta attributes (excluding request ID, etc.) of another request to this request.void
deleteExtData
(String type) getErrorCode
(Locale locale) boolean
getExtDataInBoolean
(String key, boolean defVal) boolean
getExtDataInBoolean
(String prefix, String type, boolean defVal) byte[]
org.mozilla.jss.netscape.security.x509.X509CertImpl
getExtDataInCert
(String key) org.mozilla.jss.netscape.security.x509.X509CertImpl[]
org.mozilla.jss.netscape.security.x509.CertificateExtensions
org.mozilla.jss.netscape.security.x509.X509CertInfo
org.mozilla.jss.netscape.security.x509.X509CertInfo[]
org.mozilla.jss.netscape.security.x509.CertificateSubjectName
Integer[]
org.mozilla.jss.netscape.security.x509.RevokedCertImpl[]
getExtDataInString
(String key) getExtDataInString
(String key, String subkey) String[]
getRealm()
boolean
boolean
protected boolean
protected boolean
isValidExtDataKey
(String key) This function used to check that the keys obeyed LDAP attribute name syntax rules.void
void
setContext
(String ctx) void
setCreationTime
(Date date) boolean
setExtData
(String key, byte[] data) boolean
setExtData
(String key, Integer value) boolean
setExtData
(String key, Integer[] data) boolean
setExtData
(String key, String value) boolean
setExtData
(String key, String[] values) boolean
setExtData
(String key, String subkey, String value) boolean
setExtData
(String key, Throwable e) boolean
setExtData
(String key, BigInteger value) boolean
setExtData
(String key, BigInteger[] data) boolean
setExtData
(String key, Hashtable<String, String> value) boolean
setExtData
(String key, Vector<?> stringVector) boolean
setExtData
(String key, AuthToken data) boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.CertificateExtensions data) boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.CertificateSubjectName data) boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.RevokedCertImpl[] data) boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.X509CertImpl data) boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.X509CertImpl[] data) boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.X509CertInfo data) boolean
setExtData
(String key, org.mozilla.jss.netscape.security.x509.X509CertInfo[] data) void
setModificationTime
(Date date) void
void
void
void
setRequestType
(String type) void
setSourceId
(String id)
-
Field Details
-
logger
public static org.slf4j.Logger logger -
REQ_VERSION
- See Also:
-
REQ_STATUS
- See Also:
-
REQ_TYPE
- See Also:
-
REQ_FORMAT
- See Also:
-
ENROLLMENT_REQUEST
- See Also:
-
RENEWAL_REQUEST
- See Also:
-
REVOCATION_REQUEST
- See Also:
-
CMCREVOKE_REQUEST
- See Also:
-
UNREVOCATION_REQUEST
- See Also:
-
KEYARCHIVAL_REQUEST
- See Also:
-
KEYRECOVERY_REQUEST
- See Also:
-
KEY_RECOVERY_REQUEST
- See Also:
-
KEY_ARCHIVAL_REQUEST
- See Also:
-
GETCACHAIN_REQUEST
- See Also:
-
GETREVOCATIONINFO_REQUEST
- See Also:
-
GETCRL_REQUEST
- See Also:
-
GETCERTS_REQUEST
- See Also:
-
REVOCATION_CHECK_CHALLENGE_REQUEST
- See Also:
-
GETCERT_STATUS_REQUEST
- See Also:
-
GETCERTS_FOR_CHALLENGE_REQUEST
- See Also:
-
CLA_CERT4CRL_REQUEST
- See Also:
-
CLA_UNCERT4CRL_REQUEST
- See Also:
-
NETKEY_KEYGEN_REQUEST
- See Also:
-
NETKEY_KEYRECOVERY_REQUEST
- See Also:
-
REQUESTOR_NAME
- See Also:
-
REQUESTOR_PHONE
- See Also:
-
REQUESTOR_EMAIL
- See Also:
-
REQUESTOR_COMMENTS
- See Also:
-
AUTH_TOKEN
- See Also:
-
HTTP_PARAMS
- See Also:
-
HTTP_HEADERS
- See Also:
-
AGENT_PARAMS
- See Also:
-
SERVER_ATTRS
- See Also:
-
AUTH_TOKEN_PREFIX
- See Also:
-
PROFILE_ID
- See Also:
-
AUTHORITY_ID
ID of requested certificate authority (absence implies host authority)- See Also:
-
USER_DATA
Arbitrary user-supplied data that will be saved in request.- See Also:
-
RESULT
- See Also:
-
RES_SUCCESS
-
RES_ERROR
-
REMOTE_SERVICE_AUTHORITY
- See Also:
-
SVCERRORS
- See Also:
-
REMOTE_STATUS
- See Also:
-
REMOTE_REQID
- See Also:
-
CERT_STATUS
- See Also:
-
CHALLENGE_PHRASE
- See Also:
-
SUBJECTNAME
- See Also:
-
SERIALNUMBER
- See Also:
-
SERIALNOARRAY
- See Also:
-
CERT_TYPE
- See Also:
-
CRMF_REQID
- See Also:
-
PKCS10_REQID
- See Also:
-
CMC_REQIDS
- See Also:
-
CMC_TRANSID
- See Also:
-
CMC_SENDERNONCE
- See Also:
-
CMC_RECIPIENTNONCE
- See Also:
-
CMC_REGINFO
- See Also:
-
CERT_INFO
- See Also:
-
ISSUED_CERTS
- See Also:
-
REQUEST_TRUSTEDMGR_PRIVILEGE
- See Also:
-
FINGERPRINTS
- See Also:
-
SERVER_CERT
- See Also:
-
CLIENT_CERT
- See Also:
-
CA_CERT
- See Also:
-
RA_CERT
- See Also:
-
OCSP_CERT
- See Also:
-
OBJECT_SIGNING_CERT
- See Also:
-
OTHER_CERT
- See Also:
-
ROUTER_CERT
- See Also:
-
CEP_CERT
- See Also:
-
OLD_CERTS
- See Also:
-
OLD_SERIALS
- See Also:
-
ISSUERDN
- See Also:
-
REVOKED_CERTS
- See Also:
-
REVOKED_REASON
- See Also:
-
REVOKED_CERT_RECORDS
- See Also:
-
CRL_UPDATE_STATUS
- See Also:
-
CRL_UPDATE_ERROR
- See Also:
-
CRL_PUBLISH_STATUS
- See Also:
-
CRL_PUBLISH_ERROR
- See Also:
-
REQUESTOR_TYPE
- See Also:
-
NETKEY_ATTR_CUID
- See Also:
-
NETKEY_ATTR_USERID
- See Also:
-
NETKEY_ATTR_DRMTRANS_DES_KEY
- See Also:
-
NETKEY_ATTR_ARCHIVE_FLAG
- See Also:
-
NETKEY_ATTR_DRMTRANS_AES_KEY
- See Also:
-
NETKEY_ATTR_SSKEYGEN_AES_KEY_WRAP_ALG
- See Also:
-
NETKEY_ATTR_SERVERSIDE_MUSCLE_FLAG
- See Also:
-
NETKEY_ATTR_ENC_PRIVKEY_FLAG
- See Also:
-
NETKEY_ATTR_USER_CERT
- See Also:
-
NETKEY_ATTR_KEYID
- See Also:
-
NETKEY_ATTR_KEY_SIZE
- See Also:
-
NETKEY_ATTR_KEY_TYPE
- See Also:
-
NETKEY_ATTR_KEY_EC_CURVE
- See Also:
-
SECURITY_DATA_ENROLLMENT_REQUEST
- See Also:
-
SECURITY_DATA_RECOVERY_REQUEST
- See Also:
-
SECURITY_DATA_CLIENT_KEY_ID
- See Also:
-
SECURITY_DATA_STRENGTH
- See Also:
-
SECURITY_DATA_ALGORITHM
- See Also:
-
SECURITY_DATA_TYPE
- See Also:
-
SECURITY_DATA_STATUS
- See Also:
-
SECURITY_DATA_TRANS_SESS_KEY
- See Also:
-
SECURITY_DATA_SESS_PASS_PHRASE
- See Also:
-
SECURITY_DATA_IV_STRING_IN
- See Also:
-
SECURITY_DATA_IV_STRING_OUT
- See Also:
-
SECURITY_DATA_SESS_WRAPPED_DATA
- See Also:
-
SECURITY_DATA_PASS_WRAPPED_DATA
- See Also:
-
SECURITY_DATA_PL_ENCRYPTION_OID
- See Also:
-
SECURITY_DATA_PL_WRAPPING_NAME
- See Also:
-
SECURITY_DATA_PL_WRAPPED
- See Also:
-
ASYMKEY_GENERATION_REQUEST
- See Also:
-
SYMKEY_GENERATION_REQUEST
- See Also:
-
KEY_GEN_ALGORITHM
- See Also:
-
KEY_GEN_SIZE
- See Also:
-
KEY_GEN_USAGES
- See Also:
-
KEY_GEN_TRANS_WRAPPED_SESSION_KEY
- See Also:
-
SERVER_SIDE_KEYGEN_ENROLL_ENABLE_ARCHIVAL
- See Also:
-
SSK_STAGE
- See Also:
-
SSK_STAGE_KEYGEN
- See Also:
-
SSK_STAGE_KEY_RETRIEVE
- See Also:
-
REQUESTOR_EE
- See Also:
-
REQUESTOR_RA
- See Also:
-
REQUESTOR_NETKEY_RA
- See Also:
-
REQUESTOR_KRA
- See Also:
-
REQUESTOR_AGENT
- See Also:
-
CACERTCHAIN
- See Also:
-
CRL
- See Also:
-
DOGETCACHAIN
- See Also:
-
CERT_FILTER
- See Also:
-
ERRORS
- See Also:
-
SMIME
- See Also:
-
OBJECT_SIGNING
- See Also:
-
SSL_CLIENT
- See Also:
-
REQUEST_SUBJECT_NAME
Name of request attribute that stores the End-User Supplied Subject Name. The value is of type org.mozilla.jss.netscape.security.x509.CertificateSubjectName- See Also:
-
REQUEST_KEY
Name of request attribute that stores the End-User Supplied Key. The value is of type org.mozilla.jss.netscape.security.x509.CertificateX509Key- See Also:
-
REQUEST_TRANSPORT_CERT
Name of request attribute that stores the transport certificate. The value is of type String including base64 encoded certificate.- See Also:
-
REQUEST_ARCHIVE_OPTIONS
Name of request attribute that stores the End-User Supplied PKI Archive Option extension. This extension is extracted from a CRMF request that has the user-provided private key. The value is of type byte []- See Also:
-
REQUEST_SESSION_KEY
Transport Key wrapped session key passed into DRM archival service.- See Also:
-
REQUEST_SECURITY_DATA
Session wrapped security data passed in to the DRM archival service- See Also:
-
REQUEST_ALGORITHM_PARAMS
Symmetric key algorithm params passed into DRM archival service- See Also:
-
REQUEST_ALGORITHM_OID
Symmetric Key algorithm OID passed into DRM archival service- See Also:
-
REQUEST_VALIDITY
Name of request attribute that stores the End-User Supplied Validity. The value is of type org.mozilla.jss.netscape.security.x509.CertificateValidity- See Also:
-
REQUEST_SIGNING_ALGORITHM
Name of request attribute that stores the End-User Supplied Signing Algorithm. The value is of type org.mozilla.jss.netscape.security.x509.CertificateAlgorithmId- See Also:
-
REQUEST_EXTENSIONS
Name of request attribute that stores the End-User Supplied Extensions. The value is of type org.mozilla.jss.netscape.security.x509.CertificateExtensions- See Also:
-
REQUEST_CERTINFO
Name of request attribute that stores the certificate template that will be signed and then become a certificate. The value is of type org.mozilla.jss.netscape.security.x509.X509CertInfo- See Also:
-
REQUEST_ISSUED_CERT
Name of request attribute that stores the issued certificate. The value is of type org.mozilla.jss.netscape.security.x509.X509CertImpl- See Also:
-
CTX_CERT_REQUEST
Name of request attribute that stores the User Supplied Certificate Request.- See Also:
-
ATTR_REQUEST_OWNER
- See Also:
-
ATTR_REQUEST_STATUS
- See Also:
-
ATTR_SOURCE_ID
- See Also:
-
ATTR_REQUEST_TYPE
- See Also:
-
ATTR_APPROVE_AGENTS
- See Also:
-
UPDATED_BY
Other attributes stored in the attribute set- See Also:
-
ERROR
- See Also:
-
ERROR_CODE
- See Also:
-
REALM
- See Also:
-
mRequestId
-
mRequestStatus
-
mSourceId
-
mSource
-
mOwner
-
mRequestType
-
mContext
-
realm
-
mExtData
-
-
Constructor Details
-
Request
-
-
Method Details
-
getRequestId
-
getRequestStatus
-
setRequestStatus
-
isSuccess
public boolean isSuccess() -
getError
-
getErrorCode
-
getSourceId
-
setSourceId
-
getRequestOwner
-
setRequestOwner
-
getRequestType
-
setRequestType
-
getRequestVersion
-
getCreationTime
-
setCreationTime
-
getContext
-
setContext
-
getModificationTime
-
setModificationTime
-
copyContents
Copies meta attributes (excluding request ID, etc.) of another request to this request.- Parameters:
req
- another request
-
isValidExtDataKey
This function used to check that the keys obeyed LDAP attribute name syntax rules. Keys are being encoded now, so it is changed to just filter out null and empty string keys.- Parameters:
key
- The key to check- Returns:
- false if invalid
-
isValidExtDataHashtableValue
-
setExtData
-
setExtData
-
isSimpleExtDataValue
-
getExtDataInString
-
getExtDataInHashtable
-
getExtDataKeys
-
deleteExtData
-
setExtData
-
getExtDataInString
-
setExtData
-
getExtDataInInteger
-
setExtData
-
getExtDataInIntegerArray
-
setExtData
-
getExtDataInBigInteger
-
setExtData
-
getExtDataInBigIntegerArray
-
setExtData
-
setExtData
-
getExtDataInByteArray
-
setExtData
-
getExtDataInCert
-
setExtData
-
getExtDataInCertArray
-
setExtData
-
getExtDataInCertInfo
-
setExtData
-
getExtDataInCertInfoArray
-
setExtData
public boolean setExtData(String key, org.mozilla.jss.netscape.security.x509.RevokedCertImpl[] data) -
getExtDataInRevokedCertArray
public org.mozilla.jss.netscape.security.x509.RevokedCertImpl[] getExtDataInRevokedCertArray(String key) -
setExtData
-
getExtDataInStringVector
-
getExtDataInBoolean
-
getExtDataInBoolean
-
setExtData
-
getExtDataInAuthToken
-
setExtData
public boolean setExtData(String key, org.mozilla.jss.netscape.security.x509.CertificateExtensions data) -
getExtDataInCertExts
public org.mozilla.jss.netscape.security.x509.CertificateExtensions getExtDataInCertExts(String key) -
setExtData
public boolean setExtData(String key, org.mozilla.jss.netscape.security.x509.CertificateSubjectName data) -
getExtDataInCertSubjectName
public org.mozilla.jss.netscape.security.x509.CertificateSubjectName getExtDataInCertSubjectName(String key) -
setExtData
-
getExtDataInStringArray
-
asIAttrSet
-
getRealm
-
setRealm
-
printContent
public void printContent()
-